#include<iostream>
#include<unistd.h>
#include<sys/types.h>
using namespace std;

int main()
{
//    for(int i = 0;i < 10; ++i)
//        cout<<i<<" ";
//    cout<<endl;
    while(1)
    {
        //cout<<"hello process"<<endl;
        int i = 1;
        while(i != 1e9)
        {
            ++i;
        }
        cout<<"-----------"<<endl;
        cout<<"my pid:"<<getpid()<<endl;
        cout<<"my ppid:"<<getppid()<<endl;
        

    }

    return 0;
}
